package com.han.yrpc.demo.consumer;

import com.han.yrpc.core.consumer.YrpcConsumer;
import com.han.yrpc.demo.api.HelloApi;
import org.springframework.stereotype.Component;

@Component
public class HelloService {

    @YrpcConsumer
    private HelloApi helloApi;

    public String hello(String name) {
        return helloApi.hello(name);
    }

}
